package com.xnyzc.lhy.statistics.entity.trajectory;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 预估轨迹
 *
 * @author cuixiaojian
 * @since 2019-11-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaSysTrajectory对象", description="")
public class OaSysTrajectory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "预估轨迹ID")
    @TableId(value="trajectory_id", type = IdType.INPUT)
    private Long trajectoryId;

    @ApiModelProperty(value = "订单ID")
    private String orderNo;

    @ApiModelProperty(value = "经度")
    private String lng;

    @ApiModelProperty(value = "纬度")
    private String lat;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    /**
     * 索引名称
     */
    public static final String INDEX_NAME = "oa_trajectory_predicted";

    /**
     * 索引类型
     */
    public static final String TYPE = "predicted";

    public static final String TRAJECTORY_ID = "trajectory_id";

    public static final String ORDER_NO = "order_no";

    public static final String LNG = "lng";

    public static final String LAT = "lat";

    public static final String CREATE_TIME = "create_time";

    public static final String CREATE_USER = "create_user";

    /******************** || ES 键名 || *********************/

    public static final String ES_ORDER_NO = "orderNo";

}